
/* First created by JCasGen Sun Jun 28 19:04:12 UYT 2009 */
package org.idtem.component.identificador;

import org.apache.uima.jcas.JCas;
import org.apache.uima.jcas.JCasRegistry;
import org.apache.uima.cas.impl.CASImpl;
import org.apache.uima.cas.impl.FSGenerator;
import org.apache.uima.cas.FeatureStructure;
import org.apache.uima.cas.impl.TypeImpl;
import org.apache.uima.cas.Type;
import org.apache.uima.cas.impl.FeatureImpl;
import org.apache.uima.cas.Feature;
import org.apache.uima.jcas.tcas.Annotation_Type;

/** 
 * Updated by JCasGen Mon Nov 09 22:28:22 UYST 2009
 * @generated */
public class DataRelacion_Type extends Annotation_Type {
  /** @generated */
  protected FSGenerator getFSGenerator() {return fsGenerator;}
  /** @generated */
  private final FSGenerator fsGenerator = 
    new FSGenerator() {
      public FeatureStructure createFS(int addr, CASImpl cas) {
  			 if (DataRelacion_Type.this.useExistingInstance) {
  			   // Return eq fs instance if already created
  		     FeatureStructure fs = DataRelacion_Type.this.jcas.getJfsFromCaddr(addr);
  		     if (null == fs) {
  		       fs = new DataRelacion(addr, DataRelacion_Type.this);
  			   DataRelacion_Type.this.jcas.putJfsFromCaddr(addr, fs);
  			   return fs;
  		     }
  		     return fs;
        } else return new DataRelacion(addr, DataRelacion_Type.this);
  	  }
    };
  /** @generated */
  public final static int typeIndexID = DataRelacion.typeIndexID;
  /** @generated 
     @modifiable */
  public final static boolean featOkTst = JCasRegistry.getFeatOkTst("org.idtem.component.identificador.DataRelacion");
 
  /** @generated */
  final Feature casFeat_freeling2_consulta;
  /** @generated */
  final int     casFeatCode_freeling2_consulta;
  /** @generated */ 
  public int getFreeling2_consulta(int addr) {
        if (featOkTst && casFeat_freeling2_consulta == null)
      jcas.throwFeatMissing("freeling2_consulta", "org.idtem.component.identificador.DataRelacion");
    return ll_cas.ll_getRefValue(addr, casFeatCode_freeling2_consulta);
  }
  /** @generated */    
  public void setFreeling2_consulta(int addr, int v) {
        if (featOkTst && casFeat_freeling2_consulta == null)
      jcas.throwFeatMissing("freeling2_consulta", "org.idtem.component.identificador.DataRelacion");
    ll_cas.ll_setRefValue(addr, casFeatCode_freeling2_consulta, v);}
    
  
 
  /** @generated */
  final Feature casFeat_freeling2_document;
  /** @generated */
  final int     casFeatCode_freeling2_document;
  /** @generated */ 
  public int getFreeling2_document(int addr) {
        if (featOkTst && casFeat_freeling2_document == null)
      jcas.throwFeatMissing("freeling2_document", "org.idtem.component.identificador.DataRelacion");
    return ll_cas.ll_getRefValue(addr, casFeatCode_freeling2_document);
  }
  /** @generated */    
  public void setFreeling2_document(int addr, int v) {
        if (featOkTst && casFeat_freeling2_document == null)
      jcas.throwFeatMissing("freeling2_document", "org.idtem.component.identificador.DataRelacion");
    ll_cas.ll_setRefValue(addr, casFeatCode_freeling2_document, v);}
    
  



  /** initialize variables to correspond with Cas Type and Features
	* @generated */
  public DataRelacion_Type(JCas jcas, Type casType) {
    super(jcas, casType);
    casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());

 
    casFeat_freeling2_consulta = jcas.getRequiredFeatureDE(casType, "freeling2_consulta", "org.idtem.component.common.FreelingConsulta", featOkTst);
    casFeatCode_freeling2_consulta  = (null == casFeat_freeling2_consulta) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_freeling2_consulta).getCode();

 
    casFeat_freeling2_document = jcas.getRequiredFeatureDE(casType, "freeling2_document", "org.idtem.component.freeling.Freeling2", featOkTst);
    casFeatCode_freeling2_document  = (null == casFeat_freeling2_document) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_freeling2_document).getCode();

  }
}



    